import 'package:flutter/material.dart';

//按钮主题数据
class MyButtonThemeData{
  const MyButtonThemeData({
    this.radius,
    this.normalColor,
    this.pushColor,
    this.disableColor,
    this.normalBorderColor,
    this.pushBorderColor,
    this.disableBorderColor,    
    this.textColor,
    this.textPushColor,
    this.textDisableColor,
    this.textSize,
    this.borderSize,
    this.vpadding,
    this.hpadding,
    this.flex
  });

  final double radius;
  final Color  normalColor;
  final Color  pushColor;
  final Color  disableColor;

  final Color  normalBorderColor;
  final Color  pushBorderColor;
  final Color  disableBorderColor;
  final double borderSize;//边框模式

  final Color  textColor;
  final Color  textPushColor;
  final Color  textDisableColor;
  final double textSize;
  
  final double vpadding;
  final double hpadding;
  final bool   flex;
}


//主题
class MyThemeData{

  //默认按钮主题配置
  static const MyButtonThemeData normalButton=MyButtonThemeData(
    radius:3.0,
    normalColor:Colors.lightBlue,
    pushColor:Colors.blue,
    disableColor:const Color(0xFFE0E0E0),
    textColor:Colors.white,
    textPushColor:Colors.white70,
    textDisableColor:const Color(0xFF909090),
    textSize:13.0,
    borderSize:0.0,
    vpadding:5.0,
    hpadding:10.0,
    flex: false
  );

  static const MyButtonThemeData normalButtonBolder=MyButtonThemeData(
    radius:3.0,
    normalBorderColor:Colors.lightBlue,
    pushBorderColor:Colors.blue,
    pushColor:const Color(0xFFBBDEFB),
    disableBorderColor:const Color(0xFFE0E0E0),
    textColor:Colors.lightBlue,
    textPushColor:Colors.blue,
    textDisableColor:const Color(0xFF909090),
    textSize:13.0,
    borderSize:1.0,
    vpadding:3.0,
    hpadding:10.0,
    flex: false
  );

  static const MyButtonThemeData warnButton=MyButtonThemeData(
    radius:3.0,
    normalColor:Colors.redAccent,
    pushColor:Colors.red,
    disableColor:const Color(0xFFE0E0E0),
    textColor:Colors.white,
    textPushColor:Colors.white70,
    textDisableColor:const Color(0xFF909090),
    textSize:13.0,
    vpadding:5.0,
    hpadding:10.0,
    flex: false
  );


}
